// 配镜申请单列表 - 订单管理列表
.glasses-matching-application-form,
.glasses-order-management {
  .gmaf-header {
    padding: 12px;
    padding-bottom: 0;

    &>div {
      margin-bottom: 12px;
    }
  }

  .gmaf-tabs>.ant-tabs-bar {
    margin-bottom: 8px;
  }

  .gmaf-talbe {
    padding: 0 12px;
  }

  .gmaf-checkbox-operation {

    &>span {
      cursor: pointer;
      font-weight: normal;

      &>.anticon {
        margin-right: 2px;
      }
    }

    &>.gmaf-btn-disabled {
      cursor: no-drop;
      color: #999;

      &>.anticon {
        color: #999 !important;
      }
    }
  }
}

// 配镜申请单表单录入
.gmaf-dynamic-form {
  .ant-input-group-addon {
    background-color: #fff;
    padding: 0 4px;
    text-align: left;
  }
}

.glasses-matching-modal {
  .ant-modal-body {
    padding: 12px;
  }

  .tamm-tag {
    border-color: #007AFF;
    color: #007AFF;
  }
}

// 取镜弹窗
.take-a-mirror-modal {
  .ant-modal-body {
    padding-left: 0;
  }

  .tamm-steps {
    padding: 0 128px 12px 128px;
    border-bottom: 1px solid #e8e8e8;

    .ant-steps-item-title {
      font-size: 14px;
    }
  }

  .tamm-card {
    .ant-card-body {
      padding-right: 6px;
    }
  }

  .tamm-card-content {
    max-height: 360px;
    overflow: auto;
    padding-right: 6px;

    .tamm-card-content-top {
      padding-right: 12px;
    }
  }

  .tamm-card-content-title {
    padding-top: 4px;
    font-weight: normal;

    &>div {
      line-height: 32px;
      color: #333;

      &>span:nth-child(1) {
        display: inline-block;
        width: 25%;
        text-align: right;
        color: #999;
        font-size: 13px;
      }
    }
  }

  .tamm-card-content-empty {
    width: 100%;
    height: 100%;
    color: #999;
  }

  .ant-checkbox-wrapper {
    font-weight: normal;
  }

  .ant-card-small>.ant-card-head>.ant-card-head-wrapper>.ant-card-extra {
    padding: 6px 0;
  }

  .tamm-coupon-header {
    box-shadow: 0px 1px 1px rgba(51, 51, 51, 0.15);
  }

  .tamm-coupon-list {
    margin-bottom: 12px;
    border-radius: 4px;
    border: 1px solid #e8e8e8;
    box-shadow: 1px 1px 3px 1px rgba(51, 51, 51, 0.15);

    .tamm-coupon-list-col {
      padding: 24px 12px 0 12px;
      box-sizing: border-box;

      .tamm-coupon-list-left-desc {
        margin-bottom: 12px;
      }
    }

    .tamm-coupon-list-left {
      position: relative;
      text-align: right;
      border-right: 1px dashed #e8e8e8;

      .tamm-coupon-list-left-title {
        font-size: 18px;
        margin-bottom: 8px;
      }

      .tamm-coupon-list-left-desc {
        font-size: 14px;
      }

      .ant-checkbox-wrapper {
        position: absolute;
        top: 4px;
        left: 4px;
      }
    }

    .tamm-coupon-list-right {
      .tamm-coupon-list-left-title {
        margin-bottom: 16px;
      }

      .tamm-coupon-list-left-desc {
        font-size: 12px;
        color: #999;
      }
    }

    .tamm-coupon-list-footer {
      padding: 0 12px;
      height: 36px;
      font-weight: normal;
      border-top: 1px dashed #e8e8e8;

      &>span:nth-child(1) {
        color: #666;
      }
    }
  }

  .tamm-card-no-charge {
    h3 {
      text-align: center;
      color: #ff6200;
      padding: 24px 0 12px 0;
    }

    .tamm-card-content-title {
      &>div {
        line-height: 46px
      }
    }
  }

  .tamm-unchecked-products {
    position: absolute;
    bottom: -18px;
    left: 6px;
    color: #f50057;
    font-weight: normal;
    font-size: 13px;
  }

  .no-matching-data {
    height: 228px;
    line-height: 228px;
    text-align: center;
    color: #999;
  }
}

// 查看详情
.matching-details-modal {
  .mdm-left-header {
    height: 38px;
    line-height: 38px;
    text-align: center;

    &>span {
      color: #999;
      margin-left: 12px;
      font-weight: normal;
    }

    &>span:nth-child(1) {
      margin-left: 0;
    }
  }

  .md-left-card.ant-card-small>.ant-card-body {
    padding-right: 6px;
  }

  .md-left-card-content {
    height: 352px;
    overflow: hidden;
    padding-right: 6px;

    &>.ant-col {
      height: 100%;
    }

    &>.ant-col:first-child {
      padding-right: 6px;
    }

    &>.ant-col:last-child {
      padding-left: 6px;
    }

    .md-left-card-content-form {
      height: calc(~"100% - 46px");
      overflow: auto;
      box-sizing: border-box;
      padding: 12px;
      border: 1px solid #e8e8e8;
    }
  }

  .md-right-card.ant-card-small>.ant-card-body {
    padding: 12px 6px;
  }

  .md-steps {
    height: 438px;
    overflow: auto;
    font-weight: normal;
    padding: 0 6px;

    .ant-steps-item-content {
      width: 90%;
    }

    .ant-steps-item-title {
      font-size: 15px;
      display: flex;
      justify-content: space-between;

      .ant-steps-item-subtitle {
        display: inline-block;
        min-width: 36px;
      }
    }

    .ant-steps-item-description {
      font-size: 13px;

      &>div {
        line-height: 28px;
      }
    }

    .ant-steps-item.ant-steps-item-process.ant-steps-item-active {
      .ant-steps-item-title {
        color: #007AFF;
      }
    }

    .md-steps-item-error {
      &.ant-steps-item .ant-steps-item-icon>.ant-steps-icon .ant-steps-icon-dot {
        background-color: red;
      }

      &.ant-steps-item.ant-steps-item-active .ant-steps-item-container .ant-steps-item-content .ant-steps-item-title {
        color: #333;
      }
    }
  }

  .ant-row.ant-form-item {
    margin-bottom: 0;
  }

  // .ant-form-item-control-wrapper .ant-form-item-control {
  //   line-height: 0;
  // }

  // form textarea.ant-input {
  //   margin-bottom: 8px;
  // }

  .md-card-left-tag {
    text-align: center;
    margin: 12px 0;
  }

  .no-matching-data {
    height: 240px;
    line-height: 240px;
    text-align: center;
    color: #999;
  }

  .ant-input-group-addon {
    padding: 0 4px;
  }
}

.md-deliver-goods {
  .md-deliver-goods-title {
    text-align: center;
    padding: 2px 0 6px 0;
    border-bottom: 1px solid #e8e8e8;
    font-weight: normal;
    font-size: 14px;
  }

  .md-deliver-goods-item {
    display: flex;
    font-weight: normal;
    margin-bottom: 4px;
    font-size: 13px;
  }

  .md-deliver-goods-item-label {
    display: inline-block;
    text-align: right;
    width: 80px;
  }

  .md-deliver-goods-item-value {
    display: inline-block;
    width: 130px;
    white-space: pre-wrap;
  }

  .md-deliver-goods-item-matching-detail {
    padding-top: 6px;
    font-weight: normal;
    text-align: center;
    font-size: 10px;
    color: #ccc;
    cursor: pointer;
  }
}

// 病人退镜
.patient-withdrawal {
  .ant-card-bordered {
    border: 0;
  }
}

// 订单退回/批量录入物流单号
.supplier-return-order,
.logistics-doc-entry {
  .ant-modal-body {
    padding-bottom: 46px;
  }

  .ro-form-item {
    width: 100%;

    &>span:nth-child(1) {
      display: inline-block;
      width: 72px;
      // color: #999;
      text-align: right;
      font-weight: normal;
      position: relative;
    }

    .ant-input-affix-wrapper,
    .ant-select {
      width: calc(~"100% - 72px");
    }

    .formRequired:after {
      top: 3px;
      left: -12px;
    }
  }
}

// 发货
.deliver-goods {
  .deliver-goods-header {
    margin-bottom: 12px;

    &>span {
      margin-right: 24px;
    }
  }
}